from django import forms


class CKTextAreaWidget(forms.Textarea):
    def __init__(self, *args, **kwargs):
        kwargs.setdefault('attrs', {}).update({'class':'ckeditor'})
        return super(CKTextAreaWidget, self).__init__(*args, **kwargs)

class TinyMCETextAreaWidget(forms.Textarea):
    def __init__(self, *args, **kwargs):
        kwargs.setdefault('attrs', {}).update({'class':'tinymce'})
        return super(TinyMCETextAreaWidget, self).__init__(*args, **kwargs)

